<%-- 
    Document   : thisinh_xemxephang
    Created on : Oct 7, 2012, 10:27:06 PM
    Author     : TienNT
--%>

<%@page import="tuyensinh.ThiSinh"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include  file="thisinh_menu.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form action="/TuyenSinh/XuLy" method="post">
            Nhap so bao danh cua thi sinh: 
            <input type="text" name="sbd">
            <input type="hidden" name="yc" value="thisinh_xemxephang">
            <input type="submit" value="Xem xep hang">
        </form>
        <br>
        <br>
        <%
            String tb = (String) request.getAttribute("tb");
            if (tb == null) {
                tb = "";
            }
            String ketqua = (String) request.getAttribute("ketqua");
            if (ketqua == null) {
                ketqua = "";
            }
            ThiSinh ts = (ThiSinh) request.getAttribute("thisinh");
            String status = "table";
            String sbd = "";
            String manganh = "", hoten = "", ngaysinh = "";
            if (ts == null) {
                status = "none";
            } else {
                sbd = ts.getSbd();
                hoten = ts.getHoten();
                ngaysinh = ts.getNgaysinh();
                manganh = ts.getMaNganh();
            }
        %>
        <table style="display: <%=status%>">
            <tbody>
                <tr>
                    <th>So bao danh: </th>
                    <td><%=sbd%></td>
                </tr>
                <tr>
                    <th>Ho ten: </th>
                    <td><%=hoten%></td>
                </tr>
                <tr>
                    <th>Ngay sinh: </th>
                    <td><%=ngaysinh%></td>
                </tr>
                <tr>
                    <th>Ma nganh: </th>
                    <td><%=manganh%></td>
                </tr>

                <tr>
                    <td colspan="2" style="text-align: left">
                        <br>
                        
                        <%=ketqua%>
                    </td>
                </tr>
            </tbody>
        </table>
        <%=tb%>
    </body>
</html>
